/*
 * Copyright (c) 2015. For Intelligent Group.
 */

package com.intelligent.ispc.foundation.pdf;

import com.itextpdf.text.BaseColor;
import com.itextpdf.text.Element;
import com.itextpdf.text.Font;
import com.itextpdf.text.Rectangle;

/**
 * Created by cherry on 2016/8/13.
 */
public class ExCellStyle {

    private BaseColor bgColor;
    private BaseColor borderColor;
    private Font font;
    private int border;
    private float borderWidth;
    private int align;
    private int colspan;

    public ExCellStyle() {
        this.bgColor = BaseColor.WHITE;
        this.borderColor = BaseColor.BLACK;
        this.font = new Font(Font.FontFamily.HELVETICA, 8, Font.ITALIC);
        this.border = Rectangle.BOX;
        this.borderWidth = 4f;
        this.align = Element.ALIGN_CENTER;
        this.colspan = 1;
    }

    public ExCellStyle(BaseColor borderColor, BaseColor bgColor, Font font, float borderWidth) {
        this.bgColor = bgColor;
        this.borderColor = borderColor;
        this.font = font;
        this.borderWidth = borderWidth;
    }

    public ExCellStyle(BaseColor borderColor, BaseColor bgColor, Font font, float borderWidth, int align, int colspan) {
        this.bgColor = bgColor;
        this.borderColor = borderColor;
        this.font = font;
        this.align = align;
        this.borderWidth = borderWidth;
        this.colspan = colspan;
    }

    public BaseColor getBgColor() {
        return bgColor;
    }

    public void setBgColor(BaseColor bgColor) {
        this.bgColor = bgColor;
    }

    public BaseColor getBorderColor() {
        return borderColor;
    }

    public void setBorderColor(BaseColor borderColor) {
        this.borderColor = borderColor;
    }

    public Font getFont() {
        return font;
    }

    public void setFont(Font font) {
        this.font = font;
    }

    public int getBorder() {
        return border;
    }

    public void setBorder(int border) {
        this.border = border;
    }

    public int getAlign() {
        return align;
    }

    public void setAlign(int align) {
        this.align = align;
    }

    public int getColspan() {
        return colspan;
    }

    public void setColspan(int colspan) {
        this.colspan = colspan;
    }

    public float getBorderWidth() {
        return borderWidth;
    }

    public void setBorderWidth(float borderWidth) {
        this.borderWidth = borderWidth;
    }
}
